package org.ljy.transdemo.controller;
//异常测试


import lombok.extern.slf4j.Slf4j;
import org.ljy.transdemo.common.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/test")
@RestController
public class TestController {

    @RequestMapping("/hello")
    public String  hello() {
        log.info("我被前端调用了，嘤嘤嘤~");
        int a = 10/0;
        return "hello";
        //return Result.success("方法调用成功");
    }

}
